package com.mall.product.domain.entity;

import com.mall.common.annotation.Excel;
import com.mall.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 尺码对象 pro_size
 *
 * @author zhonglin
 * @date 2020-04-29
 */
public class ProSize
    extends BaseEntity {

  private static final long serialVersionUID = 1L;

  /**
   * 尺码id
   */
  private Long sizeId;

  /**
   * 尺码编码
   */
  @Excel(name = "尺码编码")
  private String sizeCode;

  /**
   * 尺码名称
   */
  @Excel(name = "尺码名称")
  private String sizeName;

  /**
   * 尺码组id
   */
  private Long sizeGroupId;

  /**
   * 显示顺序
   */
  @Excel(name = "显示顺序")
  private Integer orderNum;

  /**
   * 状态（0正常 1停用）
   */
  @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
  private String status;

  /**
   * 删除标记（0代表存在 2代表删除）
   */
  private String delFlag;

  public void setSizeId(Long sizeId) {

    this.sizeId = sizeId;
  }

  public Long getSizeId() {

    return sizeId;
  }

  public void setSizeCode(String sizeCode) {

    this.sizeCode = sizeCode;
  }

  public String getSizeCode() {

    return sizeCode;
  }

  public void setSizeName(String sizeName) {

    this.sizeName = sizeName;
  }

  public String getSizeName() {

    return sizeName;
  }

  public void setOrderNum(Integer orderNum) {

    this.orderNum = orderNum;
  }

  public Integer getOrderNum() {

    return orderNum;
  }

  public void setStatus(String status) {

    this.status = status;
  }

  public String getStatus() {

    return status;
  }

  public void setDelFlag(String delFlag) {

    this.delFlag = delFlag;
  }

  public String getDelFlag() {

    return delFlag;
  }

  public Long getSizeGroupId() {

    return sizeGroupId;
  }

  public void setSizeGroupId(Long sizeGroupId) {

    this.sizeGroupId = sizeGroupId;
  }

  @Override
  public String toString() {

    return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("sizeId", getSizeId())
                                                                    .append("sizeCode", getSizeCode())
                                                                    .append("sizeName", getSizeName())
                                                                    .append("sizeGroupId", getSizeGroupId())
                                                                    .append("orderNum", getOrderNum())
                                                                    .append("status", getStatus())
                                                                    .append("delFlag", getDelFlag())
                                                                    .append("createBy", getCreateBy())
                                                                    .append("createTime", getCreateTime())
                                                                    .append("updateBy", getUpdateBy())
                                                                    .append("updateTime", getUpdateTime())
                                                                    .append("remark", getRemark())
                                                                    .toString();
  }

}
